content=$(cat XP90.GPD)

content=${content/__PAPER_SIZE/Option2}

content=${content/__RESET_PRINTER/Option0}

content=${content/__LINE_BREAK_START_GS/Option0}
content=${content/__LINE_BREAK_START_LF/Option0}

content=${content/__LINE_BREAK_PAGE_GS/Option0}
content=${content/__LINE_BREAK_PAGE_LF/Option0}
content=${content/__CUT_PAGE/Option0}

content=${content/__LINE_BREAK_FINISH_GS/Option0}
content=${content/__LINE_BREAK_FINISH_LF/Option3}
content=${content/__CUT_FINISH/Option0}

content=${content/__CMD_MOVE_DOWN/<0A>}

cat <<< "$content" > "Windows x64\XP90.GPD"
cat <<< "$content" > "Windows NT x86\XP90.GPD"

read -p "Press any key to continue" x
